import request from '@/utils/request'

// 查询PS列表
export function listPsb(query) {
  return request({
    url: '/gqgl/psb/list',
    method: 'get',
    params: query
  })
}

// 查询PS详细
export function getPsb(psbId) {
  return request({
    url: '/gqgl/psb/' + psbId,
    method: 'get'
  })
}

// 新增PS
export function addPsb(data) {
  return request({
    url: '/gqgl/psb',
    method: 'post',
    data: data
  })
}

// 修改PS
export function updatePsb(data) {
  return request({
    url: '/gqgl/psb',
    method: 'put',
    data: data
  })
}

// 删除PS
export function delPsb(psbId) {
  return request({
    url: '/gqgl/psb/' + psbId,
    method: 'delete'
  })
}

// 根据认定年度不分页查询PS表
export function selectPSbByRdNd(rdNd) {
  return request({
    url: '/gqgl/psb/selectPSbByRdNd/' + rdNd,
    method: 'get'
  })
}
